//
//  UpContainerView.m
//  ActiveDeck
//
//  Created by Laura McBride on 9/22/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "UpContainerView.h"


@implementation UpContainerView
@synthesize lb_PresentationName,lb_SlideCount, bt_Exit, bt_Share,Vw_upContainer,_delegate;


- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [[NSBundle mainBundle] loadNibNamed:@"upContainer" owner:self options:nil];
        [Vw_upContainer sizeThatFits:frame.size];
        
        [self addSubview:Vw_upContainer];
    }
    return self;
}


#pragma mark -
#pragma mark Calling Delegate Function

- (IBAction) QuitPresentation
{
    [_delegate leavePresent];
}


#pragma mark -
#pragma mark Create PDF Fucntion

-(IBAction)createPDF:(id)sender
{
    [_delegate exportPDF];
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void)dealloc
{
    [lb_PresentationName release];
    [lb_SlideCount release];
    [bt_Exit release];
    [bt_Share release];
    [Vw_upContainer release];
    [super dealloc];

}

@end
